package day07;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

public class homework01 {
	public static void main(String[] args) {
		ArrayList<String> arr=new ArrayList();
		Collections.addAll(arr, "张三,21", "李四,24", "丁真,26", "珍珠,27", "锐刻五,30");
		Map<String,Integer> map = arr.stream().filter(s->Integer.parseInt(s.split(",")[1])>24).
				collect(Collectors.toMap(t->t.split(",")[0],t->Integer.parseInt(t.split(",")[1]),(a,b)-> Integer.valueOf(a)));
		System.out.println(map);
	}
}
